package com.cjy.threadsynchronization;

public class PointsDeducted implements Runnable{
    private Intendant intendant = new Intendant();
    @Override
    public void run() {
        while (true){
            intendant.pointsDeducted((int) (Math.random()*10)+1);
        }
    }
}
